package com.centling.core;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.jdbc.core.JdbcTemplate;

public class BaseDAO{

    @Resource
    protected JdbcTemplate jdbcTemplate;
    @Resource
    protected SessionFactory sessionFactory;
    
    
    public void setSessionFacory(SessionFactory sessionFactory) {
            this.setSessionFactory(sessionFactory);
    }

	public SessionFactory getSessionFactory() {
		return sessionFactory;
	}

	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
    
}
